﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;

/// <summary>
/// Summary description for Order
/// </summary>
public class Order : System.Web.UI.UserControl
{
    public string OrderColumn
    {
        get
        {
            if (ViewState["OrderColumn"] == null)
            {
                ViewState["OrderColumn"] = string.Empty;
            }
            return ViewState["OrderColumn"].ToString();
        }
        set
        {
            ViewState["OrderColumn"] = value;
            if (this.OrderChanged != null)
                this.OrderChanged(this, new EventArgs());
        }
    }

    public string OrderDirection
    {
        get
        {
            if (ViewState["OrderDirection"] == null)
            {
                ViewState["OrderDirection"] = string.Empty;
            }
            return ViewState["OrderDirection"].ToString();
        }
        set
        {
            ViewState["OrderDirection"] = value;
            if (this.OrderChanged != null)
                this.OrderChanged(this, new EventArgs());
        }
    }

    public event OrderChangeEventHandler OrderChanged;

    protected void Page_Load(object sender, EventArgs e)
    {

    }
}
